package com.changwu.cwbase.net.api;

import com.alibaba.fastjson.JSONObject;
import com.changwu.cwbase.bean.response.CodeResponse;
import com.changwu.cwbase.bean.response.ListResponse;
import com.changwu.cwbase.bean.response.ResultResponse;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;


public interface UserService {
    /**
     * 获取设置手势验证码
     *
     * @return
     */
    @POST("getcode")
    Observable<CodeResponse> getcode(@Body JSONObject params);

    /**
     * 获取设置手势验证码
     *
     * @return
     */
    @POST("api/register/register")
    Observable<ResultResponse> register(@Body JSONObject params);

    /**
     * 获取设置手势验证码
     *
     * @return
     */
    @POST("forgetPassword")
    Observable<ResultResponse> forgetPassword(@Body JSONObject params);

    /**
     * 重置密码
     *
     * @return
     */
    @POST("api/user/alterPassword")
    Observable<ResultResponse> alterPassword(@Body JSONObject params);

    /**
     * @return
     */
    @POST("getList")
    Observable<ListResponse> getList(@Body JSONObject params);
}